package com.youngjun.user.service.impl;

import com.youngjun.user.mapper.AllowAccessFunctionRoleMapper;
import com.youngjun.user.service.AllowAccessFunctionRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AllowAccessFunctionRoleServiceImpl implements AllowAccessFunctionRoleService {

    @Autowired
    AllowAccessFunctionRoleMapper allowAccessFunctionroleMapper;

    @Override
    public AllowAccessFunctionRoleMapper getMapper() {
        return allowAccessFunctionroleMapper;
    }

    @Override
    public void deleteWithLogicByFunctionId(Long functionId) {
        getMapper().deleteWithLogicByFunctionId(functionId);
    }

    @Override
    public void deleteWithLogicByRoleId(Long roleId) {
        getMapper().deleteWithLogicByRoleId(roleId);
    }

}